//查询shop数据集,最多142条
export let shopFun = function (method) {
    var IDs = [];
    for (let i = 1; i <= 142; i++) {
        IDs.push(i)
    }
    let dataRes = new L.supermap.FeatureService('http://localhost:8090/iserver/services/data-ChengduFresh/rest/data')
    let params = new L.supermap.GetFeaturesByIDsParameters({
        IDs: IDs,
        datasetNames: ["ChengduFresh:Shop"],
        fromIndex: 0,
        toIndex: -1
    });
    dataRes.getFeaturesByIDs(params, method);
}


//查询Price 最多2029条
export let priceFun = function (method) {
    let IDs = [];
    for (let i = 1; i <= 2029; i++) {
        IDs.push(i)
    }
    let dataRes = new L.supermap.FeatureService('http://localhost:8090/iserver/services/data-ChengduFresh/rest/data')
    let params = new L.supermap.GetFeaturesByIDsParameters({
        IDs: IDs,
        datasetNames: ["ChengduFresh:Price"],
        maxFeatures: 2050,
        fromIndex: 0,
        toIndex: IDs.length
    });
    dataRes.getFeaturesByIDs(params, method);
}









